import request from '@/router/axios';

export const getTotal = (formInline) => {
  return request({
    url: '/api/blade-details/spend/total',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const getPresident = (level) => {
  return request({
    url: '/api/blade-user/promote/president',
    method: 'get',
    params: {
      level
    }
  })
}
export const getPresidentPid = (promoteLeadId,level) => {
  return request({
    url: '/api/blade-user/promote/president',
    method: 'get',
    params: {
      promoteLeadId,
      level
    }
  })
}
export const getPromoteMangerPid = (promoteMangerId,level) => {
  return request({
    url: '/api/blade-user/promote/president',
    method: 'get',
    params: {
      promoteMangerId,
      level
    }
  })
}

export const getPromoteUserP = (userPid,level) => {
  return request({
    url: '/api/blade-user/promote/president',
    method: 'get',
    params: {
      userPid,
      level
    }
  })
}
export const dailyData = (formInline) => {
  return request({
    url: '/api/blade-details/spend/dailyData',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const platformTotal = (formInline) => {
  return request({
    url: '/api/blade-details/sdkdeposit/platformTotal',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const platformDay = (formInline) => {
  return request({
    url: '/api/blade-details/sdkdeposit/platformDay',
    method: 'get',
    params: {
      ...formInline
    }
  })
}

export const getPromoteTotal = (formInline) => {
  return request({
    url: '/api/blade-user/promote/total',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const getActiveUser = (formInline) => {
  return request({
    url: '/api/blade-user/promote/activeUser',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const getTotalDay = (formInline) => {
  return request({
    url: '/api/blade-user/promote/totalDay',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const activeUserDay = (formInline) => {
  return request({
    url: '/api/blade-user/promote/activeUserDay',
    method: 'get',
    params: {
      ...formInline
    }
  })
}

export const reportGameCouponToday = (formInline) => {
  return request({
    url: '/api/blade-user/promote/reportGameCouponToday',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const reportGameCouponYester = (formInline) => {
  return request({
    url: '/api/blade-user/promote/reportGameCouponYester',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const reportGameCouponMonth = (formInline) => {
  return request({
    url: '/api/blade-user/promote/reportGameCouponMonth',
    method: 'get',
    params: {
      ...formInline
    }
  })
}
export const reportGameCouponAll = (formInline) => {
  return request({
    url: '/api/blade-user/promote/reportGameCouponAll',
    method: 'get',
    params: {
      ...formInline
    }
  })
}

export const loadDataReport = (form) => {
  return request({
    url: '/api/blade-app/applePay/loadDataReport',
    method: 'post',
    data:form
  })
}

export const loadDataReportM = (form) => {
  return request({
    url: '/api/blade-app/applePay/loadDataReportM',
    method: 'post',
    data:form
  })
}
